/**
 * @file UnregisterGatewayHandler.cs
 * @author Zane Mayo
 * @date 26/5/2009
 */

using System;

namespace MxitAPI {
	
	
	public class UnregisterGatewayHandler : Handler {
		
		private static log4net.ILog log = log4net.LogManager.GetLogger( System.Reflection.MethodBase.GetCurrentMethod().DeclaringType );
		
		private string userName;
		private ContactType contactType;
		
		public UnregisterGatewayHandler() : base( typeof( UnregisterGatewayProtocolMessage ) )  {
		}

				
		public UnregisterGatewayHandler( string userName, ContactType contactType ) : this()  {
			this.userName = userName;
			this.contactType = contactType;
		}
		
		public override ProtocolMessage CreateRequestProtocolMessage() {
			UnregisterGatewayProtocolMessage protocolMessage = new UnregisterGatewayProtocolMessage();
			protocolMessage.UserName = userName;
			protocolMessage.ContactType = contactType;
			
			return protocolMessage;
		}

		
	}
}